using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class cpanel_validate : System.Web.UI.Page
{
    public string value = "false";
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = "";
        id=Request.QueryString["id"].Trim();
        string tyle = "";
        tyle=Request.QueryString["tyle"].Trim();
        Common common = new Common();
        if (id != "")
        {
            if (tyle == "ntv")//kiem tra tai khoan dang ky cho nguoi tim viec
            {
                if (common.getDataTable("SELECT tai_khoan FROM dbo.ConNguoi_nguoi where tai_khoan = '" + id + "'").Rows.Count == 0)
                {
                    value = "true";
                }
            }
            else if (tyle == "vtn")//Kiem tra tai khoan dang ky cho nha tuyen dung
            {
                if (common.getDataTable("SELECT tai_khoan FROM dbo.DoanhNghiep_doanh_nghiep where tai_khoan = '" + id + "'").Rows.Count == 0)
                {
                    value = "true";
                }
            }
        }   
    }
}
